<form id="put" action="" method="post">
</form>

<script>
    $(function () {
        var id = window.location.href.split('&')[1]
        var ad = appData()
        
        ad.sel('KMGA_JUMP_CONFIG',{id:id},function (data) {
            if(data.type==1){
                var str=``
                var action = data.action
                data.content.forEach(function (d, i) {
                    str=str+` <input name=${d.name} value=${d.value}>`
                })
                $('#put').append(str)
                $('#put').attr('action',action)
                $('#put').submit()
            }
            if(data.type==2){
                var str=``
                var action = data.action
                data.content.forEach(function (d, i) {
                    str=str+` <input name=${d.name} value=${d.value}>`
                })
                $('#put').append(str)
                $('#put').attr('action',action)
                $('#put').attr('method','get')
                $('#put').submit()
            }
        })
        
        
        
    })
</script>

